import {ref} from 'vue'

const weight = ref(0)
export const useZindex = (value:number)=>{
  const initial = ref(value)
  const nextZindex = ()=>{
    const ret = initial.value + weight.value
    weight.value++
    console.log('zIndex:',ret)
    return ret
  }

  return {
    nextZindex,
  }
}